<form method="POST" action="{{ route('auth.register') }}" accept-charset="UTF-8">
    {{ csrf_field() }}

    <input type="hidden" name="remember" value="yes">

    {{--<div class="alert alert-warning">--}}
    {{--📱 非中国大陆号码需使用国际前缀，格式必须是以 + 开头并且没有空格，如：+886972812345--}}
    {{--</div>--}}

    <div class="form-group {{{ $errors->has('name') ? 'has-error' : '' }}}">
        <label class="control-label" for="name">{{ lang('Username') }}</label>
        <input class="form-control" name="name" type="text" value="{{ old('name') }}" placeholder="请填写用户名">
        {!! $errors->first('name', '<span class="help-block">:message</span>') !!}
    </div>

    <div class="form-group {{{ $errors->has('email') ? 'has-error' : '' }}}">
        <label class="control-label" for="email">{{ lang('Email') }}</label>
        <input class="form-control" name="email" type="text" value="{{ old('email') }}" placeholder="请填写 Email">
        {!! $errors->first('email', '<span class="help-block">:message</span>') !!}
    </div>

    <div class="form-group {{{ $errors->has('password') ? 'has-error' : '' }}}">
        <label class="control-label" for="password">密 码</label>
        <input class="form-control" name="password" type="password" value="{{ old('password') }}" placeholder="请填写密码">
        {!! $errors->first('password', '<span class="help-block">:message</span>') !!}
    </div>

    <div class="form-group {{{ $errors->has('password_confirmation') ? 'has-error' : '' }}}">
        <label class="control-label" for="password_confirmation">确认密码</label>
        <input class="form-control" name="password_confirmation" type="password" value="{{ old('password_confirmation') }}" placeholder="再次填写密码">
        {!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!}
    </div>

    <button type="submit" class="btn btn-lg btn-success btn-block">
        <i class="fa fa-btn fa-sign-in"></i> 注册
    </button>

    <hr>

    <fieldset class="form-group">
        <div class="alert alert-info">
            使用以下方法登录或者注册（<a href="{{route('auth.forget.view')}}">忘记密码？</a>）
        </div>
        <a class="btn btn-lg btn-default btn-block" id="login-required-submit" href="{{ URL::route('auth.oauth', ['driver' => 'github']) }}"><i class="fa fa-github-alt"></i> {{lang('Login with GitHub')}}</a>
        <a class="btn btn-lg btn-default btn-block" href="{{ URL::route('auth.oauth', ['driver' => 'qq']) }}"><i class="fa fa-qq" ></i> {{lang('Login with Qq')}}</a>
        {{--<a class="btn btn-lg btn-default btn-block" href="{{ URL::route('auth.oauth', ['driver' => 'wechat']) }}"><i class="fa fa-weixin" ></i> {{lang('Login with WeChat')}}</a>--}}
    </fieldset>
</form>